package Skip_Loop_package;

public class skip_loop_demo2 {
    public static void main(String[] args) {
        //2.结束整个循环
        for (int i = 1; i <= 5; i++) {
            if (i == 4) {
                //结束整个循环
                break;
            }
            System.out.println("小老虎在吃第" + i + "个包子");
        }
    }
}
